<template>
    <div class="goodsdesc-container">
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content"></div>
    </div>
</template>
<script>
    export default {
        data(){
            return{
                info:[]
            }
        },
        created(){
            this.version()
        },
        methods:{
            version(){
            this.$http.get('http://027xin.com:8899/api/goods/getdesc/' + this.$route.params.id).then(res => {
                if(res.data.status === 0) {
                    this.info = res.data.message[0]
                } 
            })
        }
        }
    }
</script>
<style>
.goodsdesc-container{
    padding: 4px;
}
.mui-h3, h3{
    font-size: 16px;
    margin: 15px 0;
    color: #226aff;
    text-align: center;
}
.content img{
    width: 100%;
}
</style>